var dom = document.getElementById("box3_right");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
    title: {
        text: '不同类型电影发行数随时间的变化'
    },
    tooltip: {
        trigger: 'axis'
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['2000',
 '2001',
 '2002',
 '2003',
 '2004',
 '2005',
 '2006',
 '2007',
 '2008',
 '2009',
 '2010',
 '2011',
 '2012',
 '2013',
 '2014',
 '2015',
 '2016',
 '2017',
 '2018',
 '2019']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {name:' 喜剧 ',type:'line',data:
[34, 32, 30, 31, 35, 28, 29, 33, 30, 30, 48, 119, 146, 159, 161, 154, 254, 188, 115, 103]
},
{name:' 爱情 ',type:'line',data:
[33, 37, 37, 30, 28, 29, 25, 35, 43, 36, 60, 183, 257, 269, 240, 179, 222, 220, 153, 138]
},
{name:' 剧情 ',type:'line',data:
[80, 85, 83, 71, 66, 88, 86, 88, 114, 148, 156, 546, 655, 639, 566, 465, 457, 586, 487, 477]
},
{name:' 音乐 ',type:'line',data:
[4, 2, 4, 4, 0, 3, 1, 6, 3, 5, 6, 21, 33, 42, 28, 25, 16, 15, 20, 17]
},
{name:' 奇幻 ',type:'line',data:
[8, 5, 11, 4, 9, 6, 6, 5, 4, 12, 8, 29, 49, 39, 41, 39, 63, 62, 41, 40]
},
{name:' 运动 ',type:'line',data:
[0, 1, 0, 0, 0, 2, 2, 1, 8, 4, 2, 8, 8, 17, 10, 11, 7, 10, 15, 14]
},
{name:' 动作 ',type:'line',data:
[50, 42, 25, 28, 38, 30, 25, 19, 26, 23, 30, 49, 55, 65, 65, 80, 115, 125, 102, 74]
},
{name:' 战争 ',type:'line',data:
[2, 7, 3, 3, 2, 3, 3, 5, 3, 8, 5, 42, 30, 19, 23, 17, 18, 21, 16, 23]
},
{name:' 历史 ',type:'line',data:
[4, 3, 2, 1, 3, 3, 3, 4, 6, 11, 13, 48, 35, 31, 25, 34, 17, 22, 18, 25]
},
{name:' 传记 ',type:'line',data:
[0, 2, 4, 3, 3, 2, 3, 4, 7, 7, 14, 39, 32, 33, 22, 36, 6, 16, 18, 17]
},
{name:' 古装 ',type:'line',data:
[2, 7, 2, 4, 2, 4, 1, 6, 3, 6, 12, 20, 24, 16, 12, 21, 22, 30, 34, 28]
},
{name:' 武侠 ',type:'line',data:
[2, 3, 2, 1, 1, 1, 1, 5, 2, 4, 4, 13, 8, 6, 4, 16, 13, 28, 29, 15]
},
{name:' 动画 ',type:'line',data:
[3, 5, 3, 9, 14, 9, 5, 9, 17, 24, 30, 116, 160, 174, 176, 200, 110, 62, 63, 72]
},
{name:' 悬疑 ',type:'line',data:
[9, 7, 8, 6, 7, 2, 7, 6, 8, 14, 7, 42, 73, 74, 78, 88, 145, 114, 107, 70]
},
{name:' 家庭 ',type:'line',data:
[5, 7, 2, 7, 6, 10, 9, 10, 18, 27, 23, 66, 118, 109, 107, 99, 66, 75, 73, 71]
},
{name:' 冒险 ',type:'line',data:
[3, 4, 3, 5, 3, 2, 1, 1, 2, 10, 6, 16, 28, 23, 39, 35, 35, 35, 32, 33]
},
{name:' 惊悚 ',type:'line',data:
[21, 13, 19, 17, 14, 7, 13, 13, 18, 17, 18, 34, 45, 32, 35, 67, 111, 66, 50, 20]
},
{name:' 犯罪 ',type:'line',data:
[46, 28, 18, 27, 15, 13, 14, 12, 11, 16, 11, 27, 47, 38, 44, 50, 86, 83, 54, 49]
},
{name:' 纪录片 ',type:'line',data:
[19, 16, 18, 35, 26, 28, 25, 42, 34, 59, 63, 222, 242, 249, 229, 282, 165, 194, 206, 235]
},
{name:' 歌舞 ',type:'line',data:
[1, 1, 1, 2, 1, 2, 1, 2, 0, 3, 2, 8, 8, 9, 9, 8, 5, 5, 7, 10]
},
{name:' 短片 ',type:'line',data:
[8, 13, 9, 16, 22, 20, 13, 27, 44, 65, 67, 305, 500, 637, 477, 424, 244, 198, 222, 272]
},
{name:' 灾难 ',type:'line',data:
[1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 3, 5, 4, 4, 2, 2, 3, 4, 2]
},
{name:' 西部 ',type:'line',data:
[1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 3, 3, 3, 1, 0, 2, 3, 1, 2, 0]
},
{name:' 科幻 ',type:'line',data:
[1, 4, 2, 1, 4, 3, 1, 4, 2, 1, 6, 8, 19, 23, 24, 29, 41, 28, 33, 24]
},
{name:' 恐怖 ',type:'line',data:
[22, 15, 30, 16, 15, 12, 5, 10, 11, 12, 8, 11, 18, 18, 20, 28, 59, 38, 24, 9]
},
    ]
};

;
if (option && typeof option === "object") {
    myChart.setOption(option, true);
}